package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class EstateProjectActivityCouponExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public EstateProjectActivityCouponExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public EstateProjectActivityCouponExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public EstateProjectActivityCouponExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        EstateProjectActivityCouponExample example = new EstateProjectActivityCouponExample();
        return example.createCriteria();
    }

    public EstateProjectActivityCouponExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public EstateProjectActivityCouponExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public EstateProjectActivityCouponExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public EstateProjectActivityCouponExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public EstateProjectActivityCouponExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCouponIdIsNull() {
            addCriterion("estateprojectactivitycoupon.CouponId is null");
            return (Criteria) this;
        }

        public Criteria andCouponIdIsNotNull() {
            addCriterion("estateprojectactivitycoupon.CouponId is not null");
            return (Criteria) this;
        }

        public Criteria andCouponIdEqualTo(Integer value) {
            addCriterion("estateprojectactivitycoupon.CouponId =", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CouponId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdNotEqualTo(Integer value) {
            addCriterion("estateprojectactivitycoupon.CouponId <>", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CouponId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThan(Integer value) {
            addCriterion("estateprojectactivitycoupon.CouponId >", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CouponId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivitycoupon.CouponId >=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CouponId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThan(Integer value) {
            addCriterion("estateprojectactivitycoupon.CouponId <", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CouponId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivitycoupon.CouponId <=", value, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CouponId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponIdIn(List<Integer> values) {
            addCriterion("estateprojectactivitycoupon.CouponId in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotIn(List<Integer> values) {
            addCriterion("estateprojectactivitycoupon.CouponId not in", values, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivitycoupon.CouponId between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andCouponIdNotBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivitycoupon.CouponId not between", value1, value2, "couponId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("estateprojectactivitycoupon.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("estateprojectactivitycoupon.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("estateprojectactivitycoupon.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andSubNameIsNull() {
            addCriterion("estateprojectactivitycoupon.SubName is null");
            return (Criteria) this;
        }

        public Criteria andSubNameIsNotNull() {
            addCriterion("estateprojectactivitycoupon.SubName is not null");
            return (Criteria) this;
        }

        public Criteria andSubNameEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.SubName =", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SubName = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSubNameNotEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.SubName <>", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SubName <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSubNameGreaterThan(String value) {
            addCriterion("estateprojectactivitycoupon.SubName >", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SubName > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSubNameGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.SubName >=", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SubName >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSubNameLessThan(String value) {
            addCriterion("estateprojectactivitycoupon.SubName <", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SubName < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSubNameLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.SubName <=", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SubName <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSubNameLike(String value) {
            addCriterion("estateprojectactivitycoupon.SubName like", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameNotLike(String value) {
            addCriterion("estateprojectactivitycoupon.SubName not like", value, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.SubName in", values, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameNotIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.SubName not in", values, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.SubName between", value1, value2, "subName");
            return (Criteria) this;
        }

        public Criteria andSubNameNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.SubName not between", value1, value2, "subName");
            return (Criteria) this;
        }

        public Criteria andUseRulesIsNull() {
            addCriterion("estateprojectactivitycoupon.UseRules is null");
            return (Criteria) this;
        }

        public Criteria andUseRulesIsNotNull() {
            addCriterion("estateprojectactivitycoupon.UseRules is not null");
            return (Criteria) this;
        }

        public Criteria andUseRulesEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules =", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UseRules = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseRulesNotEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules <>", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UseRules <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseRulesGreaterThan(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules >", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UseRules > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseRulesGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules >=", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UseRules >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseRulesLessThan(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules <", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UseRules < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseRulesLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules <=", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UseRules <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUseRulesLike(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules like", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesNotLike(String value) {
            addCriterion("estateprojectactivitycoupon.UseRules not like", value, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.UseRules in", values, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesNotIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.UseRules not in", values, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.UseRules between", value1, value2, "useRules");
            return (Criteria) this;
        }

        public Criteria andUseRulesNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.UseRules not between", value1, value2, "useRules");
            return (Criteria) this;
        }

        public Criteria andSalePriceIsNull() {
            addCriterion("estateprojectactivitycoupon.SalePrice is null");
            return (Criteria) this;
        }

        public Criteria andSalePriceIsNotNull() {
            addCriterion("estateprojectactivitycoupon.SalePrice is not null");
            return (Criteria) this;
        }

        public Criteria andSalePriceEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.SalePrice =", value, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SalePrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSalePriceNotEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.SalePrice <>", value, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SalePrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSalePriceGreaterThan(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.SalePrice >", value, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SalePrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSalePriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.SalePrice >=", value, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SalePrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSalePriceLessThan(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.SalePrice <", value, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SalePrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSalePriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.SalePrice <=", value, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.SalePrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSalePriceIn(List<BigDecimal> values) {
            addCriterion("estateprojectactivitycoupon.SalePrice in", values, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceNotIn(List<BigDecimal> values) {
            addCriterion("estateprojectactivitycoupon.SalePrice not in", values, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("estateprojectactivitycoupon.SalePrice between", value1, value2, "salePrice");
            return (Criteria) this;
        }

        public Criteria andSalePriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("estateprojectactivitycoupon.SalePrice not between", value1, value2, "salePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceIsNull() {
            addCriterion("estateprojectactivitycoupon.FacePrice is null");
            return (Criteria) this;
        }

        public Criteria andFacePriceIsNotNull() {
            addCriterion("estateprojectactivitycoupon.FacePrice is not null");
            return (Criteria) this;
        }

        public Criteria andFacePriceEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.FacePrice =", value, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.FacePrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFacePriceNotEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.FacePrice <>", value, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.FacePrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFacePriceGreaterThan(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.FacePrice >", value, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.FacePrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFacePriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.FacePrice >=", value, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.FacePrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFacePriceLessThan(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.FacePrice <", value, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.FacePrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFacePriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.FacePrice <=", value, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.FacePrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFacePriceIn(List<BigDecimal> values) {
            addCriterion("estateprojectactivitycoupon.FacePrice in", values, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceNotIn(List<BigDecimal> values) {
            addCriterion("estateprojectactivitycoupon.FacePrice not in", values, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("estateprojectactivitycoupon.FacePrice between", value1, value2, "facePrice");
            return (Criteria) this;
        }

        public Criteria andFacePriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("estateprojectactivitycoupon.FacePrice not between", value1, value2, "facePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceIsNull() {
            addCriterion("estateprojectactivitycoupon.UsePrice is null");
            return (Criteria) this;
        }

        public Criteria andUsePriceIsNotNull() {
            addCriterion("estateprojectactivitycoupon.UsePrice is not null");
            return (Criteria) this;
        }

        public Criteria andUsePriceEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.UsePrice =", value, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UsePrice = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsePriceNotEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.UsePrice <>", value, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UsePrice <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsePriceGreaterThan(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.UsePrice >", value, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UsePrice > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsePriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.UsePrice >=", value, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UsePrice >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsePriceLessThan(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.UsePrice <", value, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UsePrice < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsePriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("estateprojectactivitycoupon.UsePrice <=", value, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UsePrice <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUsePriceIn(List<BigDecimal> values) {
            addCriterion("estateprojectactivitycoupon.UsePrice in", values, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceNotIn(List<BigDecimal> values) {
            addCriterion("estateprojectactivitycoupon.UsePrice not in", values, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("estateprojectactivitycoupon.UsePrice between", value1, value2, "usePrice");
            return (Criteria) this;
        }

        public Criteria andUsePriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("estateprojectactivitycoupon.UsePrice not between", value1, value2, "usePrice");
            return (Criteria) this;
        }

        public Criteria andOnlineIsNull() {
            addCriterion("estateprojectactivitycoupon.`Online` is null");
            return (Criteria) this;
        }

        public Criteria andOnlineIsNotNull() {
            addCriterion("estateprojectactivitycoupon.`Online` is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.`Online` =", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Online` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineNotEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.`Online` <>", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Online` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThan(Boolean value) {
            addCriterion("estateprojectactivitycoupon.`Online` >", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Online` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.`Online` >=", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Online` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineLessThan(Boolean value) {
            addCriterion("estateprojectactivitycoupon.`Online` <", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Online` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineLessThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.`Online` <=", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`Online` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineIn(List<Boolean> values) {
            addCriterion("estateprojectactivitycoupon.`Online` in", values, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotIn(List<Boolean> values) {
            addCriterion("estateprojectactivitycoupon.`Online` not in", values, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivitycoupon.`Online` between", value1, value2, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivitycoupon.`Online` not between", value1, value2, "online");
            return (Criteria) this;
        }

        public Criteria andEffectTimeIsNull() {
            addCriterion("estateprojectactivitycoupon.EffectTime is null");
            return (Criteria) this;
        }

        public Criteria andEffectTimeIsNotNull() {
            addCriterion("estateprojectactivitycoupon.EffectTime is not null");
            return (Criteria) this;
        }

        public Criteria andEffectTimeEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.EffectTime =", value, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.EffectTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectTimeNotEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.EffectTime <>", value, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.EffectTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectTimeGreaterThan(Date value) {
            addCriterion("estateprojectactivitycoupon.EffectTime >", value, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.EffectTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.EffectTime >=", value, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.EffectTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectTimeLessThan(Date value) {
            addCriterion("estateprojectactivitycoupon.EffectTime <", value, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.EffectTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectTimeLessThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.EffectTime <=", value, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.EffectTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andEffectTimeIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.EffectTime in", values, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeNotIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.EffectTime not in", values, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.EffectTime between", value1, value2, "effectTime");
            return (Criteria) this;
        }

        public Criteria andEffectTimeNotBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.EffectTime not between", value1, value2, "effectTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeIsNull() {
            addCriterion("estateprojectactivitycoupon.ExpireTime is null");
            return (Criteria) this;
        }

        public Criteria andExpireTimeIsNotNull() {
            addCriterion("estateprojectactivitycoupon.ExpireTime is not null");
            return (Criteria) this;
        }

        public Criteria andExpireTimeEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.ExpireTime =", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.ExpireTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireTimeNotEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.ExpireTime <>", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.ExpireTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireTimeGreaterThan(Date value) {
            addCriterion("estateprojectactivitycoupon.ExpireTime >", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.ExpireTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.ExpireTime >=", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.ExpireTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireTimeLessThan(Date value) {
            addCriterion("estateprojectactivitycoupon.ExpireTime <", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.ExpireTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireTimeLessThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.ExpireTime <=", value, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.ExpireTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireTimeIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.ExpireTime in", values, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeNotIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.ExpireTime not in", values, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.ExpireTime between", value1, value2, "expireTime");
            return (Criteria) this;
        }

        public Criteria andExpireTimeNotBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.ExpireTime not between", value1, value2, "expireTime");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("estateprojectactivitycoupon.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("estateprojectactivitycoupon.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("estateprojectactivitycoupon.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("estateprojectactivitycoupon.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivitycoupon.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("estateprojectactivitycoupon.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("estateprojectactivitycoupon.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivitycoupon.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivitycoupon.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("estateprojectactivitycoupon.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("estateprojectactivitycoupon.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("estateprojectactivitycoupon.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("estateprojectactivitycoupon.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("estateprojectactivitycoupon.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("estateprojectactivitycoupon.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("estateprojectactivitycoupon.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("estateprojectactivitycoupon.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("estateprojectactivitycoupon.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("estateprojectactivitycoupon.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivitycoupon.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("estateprojectactivitycoupon.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("estateprojectactivitycoupon.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("estateprojectactivitycoupon.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("estateprojectactivitycoupon.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivitycoupon.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(EstateProjectActivityCoupon.Column column) {
            addCriterion(new StringBuilder("estateprojectactivitycoupon.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("estateprojectactivitycoupon.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivitycoupon.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private EstateProjectActivityCouponExample example;

        protected Criteria(EstateProjectActivityCouponExample example) {
            super();
            this.example = example;
        }

        public EstateProjectActivityCouponExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(EstateProjectActivityCoupon.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(EstateProjectActivityCoupon.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.EstateProjectActivityCouponExample example);
    }
}